package cn.appsys.service.front.appinfo;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;



import cn.appsys.dao.front.appinfo.FrontAppinfoMapper;
import cn.appsys.pojo.AppInfo;

/**
 * app信息查询接口实现类
 * 
 * @author administrader
 * 
 */
@Service("frontAppinfoService")
public class FrontAppinfoServiceimpl implements FrontAppinfoService {

	@Resource
	private FrontAppinfoMapper frontAppinfoMapper;

	//分页查询app详细信息
	@Override
	public List<AppInfo> queryAppPageInfo(String querySoftwareName,
			Integer queryStatus, Integer queryFlatformId,
			Integer queryCategoryLevel1, Integer queryCategoryLevel2,
			Integer queryCategoryLevel3, Integer from, Integer pageSize) {
		return frontAppinfoMapper.queryAppPageInfo(querySoftwareName,
				queryStatus, queryFlatformId, queryCategoryLevel1,
				queryCategoryLevel2, queryCategoryLevel3, from, pageSize);
	}

	//查询记录数
	@Override
	public int queryCount(String querySoftwareName, Integer queryStatus,
			Integer queryFlatformId, Integer queryCategoryLevel1,
			Integer queryCategoryLevel2, Integer queryCategoryLevel3) {
		// TODO Auto-generated method stub
		return frontAppinfoMapper.queryCount(querySoftwareName, queryStatus,
				queryFlatformId, queryCategoryLevel1, queryCategoryLevel2,
				queryCategoryLevel3);
	}

	//根据参数查询app详细信息
	@Override
	public AppInfo queryAppInfoNameAndApk(String softwareName, String APKName) {
		return frontAppinfoMapper.queryAppInfoNameAndApk(softwareName, APKName);
	}

	//新增appinfo
	@Override
	public int addAppInfo(AppInfo appInfo) {
		return frontAppinfoMapper.addAppInfo(appInfo);
	}

	//根据id查询应用信息
	@Override
	public AppInfo queryInfoByIdAndAPK(Integer id) {
		return frontAppinfoMapper.queryInfoByIdAndAPK(id);
	}

	//修改图片路径两个列
	@Override
	public int updateLogoPathById(Integer id) {
		return frontAppinfoMapper.updateLogoPathById(id);
	}
	
	//修改appinfo整体信息

	@Override
	public int updateAppinfo(AppInfo appinfo) {
		return frontAppinfoMapper.updateAppinfo(appinfo);
	}

	
	//删除appinfo信息
	@Override
	public int delAppinfo(Integer id) {
		return frontAppinfoMapper.delAppinfo(id);
	}
	
	
	
	
	
	

}
